package com.ruoyi.profession.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.profession.mapper.CareerInfoMapper;
import com.ruoyi.profession.domain.CareerInfo;
import com.ruoyi.profession.service.ICareerInfoService;

/**
 * 履历信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
@Service
public class CareerInfoServiceImpl implements ICareerInfoService 
{
    @Autowired
    private CareerInfoMapper careerInfoMapper;

    /**
     * 查询履历信息
     * 
     * @param id 履历信息主键
     * @return 履历信息
     */
    @Override
    public CareerInfo selectCareerInfoById(Long id)
    {
        return careerInfoMapper.selectCareerInfoById(id);
    }

    /**
     * 查询履历信息列表
     * 
     * @param careerInfo 履历信息
     * @return 履历信息
     */
    @Override
    public List<CareerInfo> selectCareerInfoList(CareerInfo careerInfo)
    {
        return careerInfoMapper.selectCareerInfoList(careerInfo);
    }

    /**
     * 新增履历信息
     * 
     * @param careerInfo 履历信息
     * @return 结果
     */
    @Override
    public int insertCareerInfo(CareerInfo careerInfo)
    {
        return careerInfoMapper.insertCareerInfo(careerInfo);
    }

    /**
     * 修改履历信息
     * 
     * @param careerInfo 履历信息
     * @return 结果
     */
    @Override
    public int updateCareerInfo(CareerInfo careerInfo)
    {
        return careerInfoMapper.updateCareerInfo(careerInfo);
    }

    /**
     * 批量删除履历信息
     * 
     * @param ids 需要删除的履历信息主键
     * @return 结果
     */
    @Override
    public int deleteCareerInfoByIds(Long[] ids)
    {
        return careerInfoMapper.deleteCareerInfoByIds(ids);
    }

    /**
     * 删除履历信息信息
     * 
     * @param id 履历信息主键
     * @return 结果
     */
    @Override
    public int deleteCareerInfoById(Long id)
    {
        return careerInfoMapper.deleteCareerInfoById(id);
    }
}
